package com.zfsoft.deployui.service;

import com.zfsoft.deployui.deploy.Host;
import com.zfsoft.deployui.mapper.FabricOrgMapper;
import com.zfsoft.deployui.deploy.Org1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddOrgServiceImpl implements AddOrgService {
    @Autowired
    FabricOrgMapper fabricOrgMapper;

    @Override
    public void addOrg(Org1 org) {
        fabricOrgMapper.addOrg(org);
    }

    @Override
    public List<Org1> queryAllOrg() {
        return fabricOrgMapper.queryAllOrg();
    }

    @Override
    public void delOrg(String name) {
        fabricOrgMapper.delOrg(name);
    }

    @Override
    public Org1 findOrg(String name) {
        return fabricOrgMapper.findOrg(name);
    }

    @Override
    public void alterOrg(Org1 org) {
        fabricOrgMapper.alterOrg(org);
    }

    @Override
    public List<Org1> queryByStatus(String status) {
        return fabricOrgMapper.queryByStatus(status);
    }
}